/*
 * Cloud.h
 *
 *  Created on: 1 avr. 2009
 *      Author: CHETIER
 */

#include"SDL/include/SDL.h"
#include <string.h>
#include <iostream>
#include <stdlib.h>

#include "SpriteBase.h"

using namespace std;

#ifndef CLOUD_H_
#define CLOUD_H_

class Cloud: public SpriteBase
{
private:
	const char *_CloudImageUrl;
	int _Ymax, _Ymin;
	double _xExact, _yExact;
	int _screenWidth;
	double _velocity;
	double _velocityMax;

	void initializeX();
	void initializeY();
	void initializeVelocity();

public:
	Cloud(const char* pCloudImageUrl, int pMaxY, int pMinY, double pVelocityMax,int pScreenWidth);
	virtual ~Cloud();

	int initialize(void);
	int think();
};

#endif /* CLOUD_H_ */
